home *** CD-ROM | disk | FTP | other *** search
/ Sun Solutions 1997 April to September / Sun Solutions CD - APR '97 - SEP '97 (704-3778-12 Rev. H)(Sun Microsystems, Inc.)(1997).iso / products / bin / httpd / src / Makefile < prev    next >
Makefile  |  1995-05-18  |  5KB  |  170 lines

  1. # Makefile for NCSA's httpd. 
  2.  
  3. # For normal machines with ANSI compilers
  4. # CC= cc
  5. # For Suns or other non-ANSI platforms. Please make sure your gcc is
  6. # 2.0 or later, as 1.40 seems to create bad code for the Sun 4.
  7. CC= gcc 
  8.  
  9. # CFLAGS, compile flags.
  10.  
  11. # If you want no reverse hostname resolution, use -DMINIMAL_DNS
  12. # If you want to have more secure hostname resolution at the cost of some 
  13. # performance, use -DMAXIMUM_DNS
  14. # -DPEM_AUTH No longer does anything, as the PEM/PGP hooks have been removed
  15. # pursuant to compliance with U.S. State Department and NSA export rules
  16. # If you want to have the server check the execute bit of an HTML file to
  17. # determine if it is a parsed file, use -DXBITHACK
  18. # If you don't want to use the multiple child architecture, use -DNO_PASS
  19. # If you want to ensure that CGI scripts can't mess with the log files,
  20. # use -DSECURE_LOGS
  21. #
  22. CFLAGS= -O2  -g -DNO_PASS
  23. #CFLAGS= -g -Wall -ansi -pedantic
  24.  
  25. # Place here any extra libraries you may need to link to. You
  26. # shouldn't have to.
  27. EXTRA_LIBS=
  28.  
  29. # AUX_CFLAGS are system-specific control flags.
  30. # NOTE: IF YOU DO NOT CHOOSE ONE OF THESE, EDIT httpd.h AND CHOOSE
  31. # SETTINGS FOR THE SYSTEM FLAGS. IF YOU DON'T, BAD THINGS WILL HAPPEN.
  32.  
  33. # For SunOS 4:  Only use uncomment EXTRA_LIBS if you want to circumvent
  34. # NIS and /etc/hosts file.
  35. # AUX_CFLAGS= -DSUNOS4
  36. # EXTRA_LIBS= -lresolv
  37. # For Solaris 2. NOTE: Lots of problems have been identified with compiling
  38. # httpd under Solaris. Use with caution. If you see aberrant behavior with
  39. # httpd under Solaris 2, please mail us.
  40. # AUX_CFLAGS= -DSOLARIS2
  41. # EXTRA_LIBS= -lsocket -lnsl
  42. # For SGI IRIX. Use the EXTRA_LIBS line if you're using NIS and want
  43. # user-supported directories
  44. # AUX_CFLAGS= -DIRIX
  45. # EXTRA_LIBS= -lsun
  46. # For HP-UX
  47. # AUX_CFLAGS= -DHPUX
  48. # For AIX
  49.  AUX_CFLAGS= -DAIX -U__STR__
  50. # For Ultrix
  51. # AUX_CFLAGS= -DULTRIX
  52. # For DEC OSF/1
  53. # AUX_CFLAGS= -DOSF1
  54. # For NeXT
  55. # AUX_CFLAGS= -DNeXT
  56. # For Sequent
  57. # AUX_CFLAGS= -DSEQUENT
  58. # For Linux -m486 ONLY IF YOU HAVE 486 BINARY SUPPORT IN KERNEL
  59. # AUX_CFLAGS= -DLINUX
  60. # For NetBSD 1.0
  61. # May not need -lcrypt if its included in your libc
  62. # AUX_CFLAGS= -DNETBSD
  63. # EXTRA_LIBS = -lcrypt
  64. # For A/UX
  65. # AUX_CFLAGS= -DAUX -D_POSIX_SOURCE
  66. # EXTRA_LIBS= -lposix -lbsd -s
  67. # For SCO ODT
  68. # libcrypt_i available from sosco.sco.com, files /SLS/lng225b.Z and
  69. # /SLS/lng225b.ltr.Z
  70. # AUX_CFLAGS= -DSCO
  71. # EXTRA_LIBS= -lPW -lsocket -lmalloc # -lcrypt_i
  72. # For SCO SVR3.2
  73. # AUX_CFLAGS= -DSCO3
  74. # EXTRA_LIBS= -lPW -lsocket -lmalloc -lintl -lcrypt
  75. # For SVR4
  76. # AUX_CFLAGS= -DSVR4
  77. # EXTRA_LIBS= -lsocket -lnsl -lc
  78. # For Amdahl UTS 2.1
  79. # -Xa enables ANSI mode, -eft is expanded types
  80. # AUX_CFLAGS= -Xa -eft -DUTS21
  81. # EXTRA_LIBS= -lsocket -lbsd -la
  82. # For HP/Apollo Domain/OS
  83. # AUX_CFLAGS= -DAPOLLO
  84. # For AT&T Sys V R 3.2
  85. # AUX_CFLAGS= -DATTSVR3
  86. # EXTRA_LIBS= -lnet -lnsl_s -lgen
  87. # For QNX 4.22
  88. # AUX_CFLAGS= -Osax  -g1 -fi=unix.h -w4 -zc -5 
  89. # EXTRA_LIBS= -N 250k
  90.  
  91.  
  92. # Place here any flags you may need upon linking, such as a flag to
  93. # prevent dynamic linking (if desired)
  94. LFLAGS= 
  95.  
  96. # You shouldn't have to edit anything else.
  97.  
  98. OBJS=http_config.o httpd.o http_request.o util.o http_dir.o \
  99. http_alias.o http_log.o http_mime.o http_access.o http_auth.o \
  100. http_get.o http_post.o http_script.o http_include.o rfc931.o \
  101. http_put.o http_delete.o http_ipc.o
  102.  
  103. .c.o:
  104.     $(CC) -c $(CFLAGS) $(AUX_CFLAGS) $<
  105.  
  106. all: httpd
  107.  
  108. aux:
  109.     make tar AUX_CFLAGS="-DAUX -D_POSIX_SOURCE" CC=gcc \
  110.         CFLAGS="-O2" EXTRA_LIBS="-lposix -lbsd -s"
  111.  
  112. ibm:
  113.     make tar AUX_CFLAGS=-DAIX CC=gcc CFLAGS=-O2
  114.  
  115. sunos:
  116.     make tar AUX_CFLAGS=-DSUNOS4 CC=gcc CFLAGS=-O2
  117.  
  118. solaris:
  119.     make tar AUX_CFLAGS=-DSOLARIS2 EXTRA_LIBS="-lsocket -lnsl" CC=gcc CFLAGS=-O2
  120.  
  121. hp-gcc:
  122.     make tar AUX_CFLAGS=-DHPUX CC=gcc CFLAGS=-O2
  123.  
  124. hp-cc:
  125.     make tar AUX_CFLAGS=-DHPUX CC=cc CFLAGS="-O -Aa"
  126.  
  127. sgi:
  128.     make tar AUX_CFLAGS=-DIRIX EXTRA_LIBS=-lsun CC=cc CFLAGS=-O2
  129.  
  130. decmips:
  131.     make tar AUX_CFLAGS=-DULTRIX CC=cc CFLAGS=-O2
  132.  
  133. decaxp:
  134.     make tar AUX_CFLAGS=-DOSF1 CC=cc CFLAGS=-O2
  135.  
  136. netbsd:
  137.     make tar AUX_CFLAGS=-DNETBSD EXTRA_LIBS=-lcrypt CC=cc CFLAGS=-O2
  138.  
  139. linux:
  140.     make tar AUX_CFLAGS=-DLINUX CC=gcc CFLAGS=-O2
  141.  
  142. qnx:
  143.     make tar AUX_CFLAGS="-Osax -g1 -w4 -zc -fi=unix.h" EXTRA_LIBS="-N 250k" CC=cc
  144.  
  145. svr4:
  146.     make tar AUX_CFLAGS=-DSVR4 EXTRA_LIBS="-lsocket -lnsl" CC=cc CFLAGS=-O2
  147.  
  148. httpd: $(OBJS)
  149.     $(CC) $(LFLAGS) -o httpd $(OBJS) $(EXTRA_LIBS)
  150.  
  151. purify: $(OBJS)
  152.     purify -logfile=/X11/blong/httpd/logs/pure_log \
  153.            -program-name=/X11/blong/httpd/src/httpd \
  154.            -follow-child-processes \
  155.     $(CC) $(LFLAGS) -o httpd $(OBJS) $(EXTRA_LIBS)
  156.  
  157. tar: $(OBJS)
  158.     $(CC) $(LFLAGS) -o ../httpd $(OBJS) $(EXTRA_LIBS)
  159.     rm -f $(OBJS)
  160.  
  161. http_ipc.o: Makefile httpd.h new.h
  162. httpd.o: Makefile httpd.h new.h
  163. http_log.o: Makefile httpd.h new.h
  164. http_script.o: Makefile httpd.h new.h
  165.  
  166. $(OBJS): Makefile httpd.h
  167.  
  168. clean:
  169.     rm -f httpd $(OBJS) *pure*
  170.